//判断字符是否为空格或则为回车
function validator(var1) {

	//这是正则，\s匹配空格和回车等
	var parten = /^\s*$/;

	//执行验证
	if (parten.test(var1)) {
		api.toast({
			msg : '请不要输入回车或则空格',
			duration : 2000,
			location : 'bottom'
		});
		return;
	} else {
	}
	//		alert("not all spaces");
}
//判断是否有前缀
function getpicurl(picurl) {
	var purl = "";
	if (picurl) {
		if (picurl.indexOf("http") != -1) {//包含
			purl = picurl;
		} else {
			purl = "http://cfnet.org.cn" + picurl;
		}
	}else{
		purl="http://cfnet.org.cn/public/themes/classic2/images/user_pic_big.gif";
	}
	return purl;
}